<!-- $Id: goods_info.htm 17126 2010-04-23 10:30:26Z  $ -->
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,selectzone.js,colorselector.js"}
<script type="text/javascript" src="../js/calendar.php?lang={$cfg_lang}"></script>
<link href="../js/calendar/calendar.css" rel="stylesheet" type="text/css" />

{if $warning}
<ul style="padding:0; margin: 0; list-style-type:none; color: #CC0000;">
  <li style="border: 1px solid #CC0000; background: #FFFFCC; padding: 10px; margin-bottom: 5px;" >{$warning}</li>
</ul>
{/if}

<!-- start goods form -->
<div class="tab-div">
    <!-- tab bar -->
    <div id="tabbar-div">
      <p>
        <span class="tab-front" id="general-tab">{$lang.tab_general}</span><span
        class="tab-back" id="detail-tab">{$lang.tab_detail}</span><span
        class="tab-back" id="mix-tab">{$lang.tab_mix}</span>{if $goods_type_list}<span
        class="tab-back" id="properties-tab">{$lang.tab_properties}</span>{/if}<span
        class="tab-back" id="gallery-tab">{$lang.tab_gallery}</span><span
        class="tab-back" id="linkgoods-tab">{$lang.tab_linkgoods}</span>{if $code eq ''}<span
        class="tab-back" id="groupgoods-tab">{$lang.tab_groupgoods}</span>{/if}<span
        class="tab-back" id="article-tab">{$lang.tab_article}</span>
      </p>
    </div>

    <!-- tab body -->
    <div id="tabbody-div">
      <form enctype="multipart/form-data" action="projects.php?pid={$project.pid}" method="post" name="theForm" onsubmit="return validate();">
        <!-- 最大文件限制 -->
        <input type="hidden" name="MAX_FILE_SIZE" value="2097152" />
        <!-- 通用信息 -->
        <table width="90%" id="general-table" align="center">
          <tr>
            <td class="label">Project Subject:</td>
            <td><input type="text" name="project_subject" value="{$project.subject}" style="float:left;color:{$goods_name_color};" size="30" />
            </td>
          </tr>
          <tr>
            <td class="label">Project ID:</td>
            <td>{$project.pid}</td>
          </tr>
          <tr>
            <td class="label">Looking for</td>
            <td>
			<select id="trainertype_id" name="trainer_type">
			{foreach from=$trainertype item=trainertype}
			<option value="{$trainertype.num}">{$trainertype.trainerType}</option>
			{/foreach}
			</select>
			<script>
				document.getElementById("trainertype_id").value="{$project.trainerType}";
			</script>
            </td>
          </tr>
		  <tr>
            <td class="label">Training type</td>
            <td><select id="trainingtype_id" name="training_type" >
			{foreach from=$trainingtype item=trainingtype}
			<option value="{$trainingtype.num}">{$trainingtype.trainingType}</option>
			{/foreach}
			</select>
			<script>
				document.getElementById("trainingtype_id").value="{$project.trainingType}";
			</script>
            </td>
          </tr>
		  <tr>
            <td class="label">How many training sessions</td>
            <td><select id="sessionstype_id" name="sessions_type">
			{foreach from=$sessionstype item=sessionstype}
			<option value="{$sessionstype.num}">{$sessionstype.sessionType}</option>
			{/foreach}
			</select>
			<script>
				document.getElementById("sessionstype_id").value="{$project.sessions}";
			</script>
            </td>
          </tr>
		  <tr>
            <td class="label">Length per session</td>
            <td><select id="sessionlength_id" name="session_length">
			{foreach from=$sessionlength item=sessionlength}
			<option value="{$sessionlength.num}">{$sessionlength.lengthType}</option>
			{/foreach}
			</select>
			<script>
				document.getElementById("sessionlength_id").value="{$project.length}";
			</script>
            </td>
          </tr>
		  <tr>
            <td class="label">Training budget</td>
            <td><select id="budget_id" name="budget">
			{foreach from=$budget item=budget}
			<option value="{$budget.num}">{$budget.budgetType}</option>
			{/foreach}
			</select>
			<script>
				document.getElementById("budget_id").value="{$project.budget}";
			</script>
            </td>
          </tr>
		  <tr>
            <td class="label">Quoting closes</td>
            <td><select id="quoting_id" name="quoting">
			{foreach from=$quoting item=quoting}
			<option value="{$quoting.num}">{$quoting.quotingType}</option>
			{/foreach}
			</select>
			<script>
				document.getElementById("quoting_id").value="{$project.quoting}";
			</script>
            </td>
          </tr>
		  <tr>
            <td class="label">City/Town</td>
            <td><input type="text" name="city_town" value="{$project.city}" style="float:left;color:{$goods_name_color};" size="30" /></td>
          </tr>
		  <tr>
            <td class="label">How many friends do you intend to bring</td>
            <td><select id="friends_id" name="friends_num">
			{foreach from=$friendsnum item=friend}
			<option value="{$friend.num}">{$friend.friendsnum}</option>
			{/foreach}
			</select>
			<script>
				document.getElementById("friends_id").value="{$project.friends}";
			</script>
            </td>
          </tr>
          <tr>
            <td class="label">Details about your training goals</td>
            <td><input type="text" name="project_detail" value="{$project.content}" style="float:left;color:{$goods_name_color};" size="30" />
            </td>
          </tr>
		  <tr>
            <td class="label">Created Date</td>
            <td><input type="text" name="create_date" value="{$project.createdDate}" style="float:left;color:{$goods_name_color};" size="30" />
            </td>
          </tr>
		  <tr>
            <td class="label">End Date</td>
            <td>{$project.endDate}
            </td>
          </tr>
		  <tr>
            <td class="label">Special Request</td>
            <td><input type="text" name="special_request" value="{$project.specialReq}" style="float:left;color:{$goods_name_color};" size="30" />
            </td>
          </tr>
		  <tr>
            <td class="label">Applied for Feature or Not</td>
            <td>
			<input type="radio" name="feature_flag" value="0" />Not			
			<input type="radio" name="feature_flag" value="1" />Applied	
			<script>					
    			if(document.getElementsByName("feature_flag")[0].value == {$project.featuredFlag})
				{
					document.getElementsByName("feature_flag")[0].checked = true;  
				}
				else
				{
					document.getElementsByName("feature_flag")[1].checked = true; 
				}
       					
			</script>		
            </td>
          </tr>
		  <tr>
            <td class="label">Feature Date</td>
            <td><input type="text" name="feature_date" value="{$project.featuredDate}" style="float:left;color:{$goods_name_color};" size="30" /><input type="hidden" id="goods_name_color" name="goods_name_color" value="{$goods_name_color}" />&nbsp;
            </td>
          </tr>
		  <tr>
            <td class="label">Proposals Number</td>
            <td><input type="text" name="proposals_num" value="{$project.proposalsNum}" style="float:left;color:{$goods_name_color};" size="30" /><input type="hidden" id="goods_name_color" name="goods_name_color" value="{$goods_name_color}" />&nbsp;
            </td>
          </tr>
		  <tr>
            <td class="label">Status</td>
            <td><input type="text" name="project_status" value="{$project.status}" style="float:left;color:{$goods_name_color};" size="30" /><input type="hidden" id="goods_name_color" name="goods_name_color" value="{$goods_name_color}" />&nbsp;
            </td>
          </tr>
        </table>

        <div class="button-div">
          <input type="submit" value="Save Changes" class="button" />
        </div>
        <input type="hidden" name="act" value="modify" />
      </form>
    </div>
</div>
<!-- end goods form -->
{include file="pagefooter.htm"}
